package com.boang.service;

import com.boang.dao.StudentDao;
import com.boang.dao.StudentDaoImpl;
import com.boang.po.Student;

import java.util.List;

/*
  @author: 13813
  @date: 2024/7/12 16:10
*/
public class StudentServiceImpl implements StudentService {
    @Override
    public List<Student> getStuAll() {
        StudentDaoImpl studentDao = new StudentDaoImpl();
        return studentDao.selectStuList();
    }

    @Override
    public Student getStuById(int id) {
        StudentDaoImpl studentDao = new StudentDaoImpl();
        return studentDao.selectStuById(id);
    }
}
